Integrand size = 23, antiderivative size = 61 \[ \int \frac {a+a \sin (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=-\frac {2 a \sqrt {e \cos (c+d x)}}{d e}+\frac {2 a \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{d \sqrt {e \cos (c+d x)}} \]
[Out]
Time = 0.03 (sec) , antiderivative size = 61, normalized size of antiderivative = 1.00, number of steps used = 3, number of rules used = 3, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.130, Rules used = {2748, 2721, 2720} \[ \int \frac {a+a \sin (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=\frac {2 a \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{d \sqrt {e \cos (c+d x)}}-\frac {2 a \sqrt {e \cos (c+d x)}}{d e} \]
[In]
[Out]
Rule 2720
Rule 2721
Rule 2748
Rubi steps \begin{align*} \text {integral}& = -\frac {2 a \sqrt {e \cos (c+d x)}}{d e}+a \int \frac {1}{\sqrt {e \cos (c+d x)}} \, dx \\ & = -\frac {2 a \sqrt {e \cos (c+d x)}}{d e}+\frac {\left (a \sqrt {\cos (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)}} \, dx}{\sqrt {e \cos (c+d x)}} \\ & = -\frac {2 a \sqrt {e \cos (c+d x)}}{d e}+\frac {2 a \sqrt {\cos (c+d x)} \operatorname {EllipticF}\left (\frac {1}{2} (c+d x),2\right )}{d \sqrt {e \cos (c+d x)}} \\ \end{align*}
Result contains higher order function than in optimal. Order 5 vs. order 4 in optimal.
Time = 0.29 (sec) , antiderivative size = 62, normalized size of antiderivative = 1.02 \[ \int \frac {a+a \sin (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=-\frac {4 \sqrt [4]{2} a \sqrt {e \cos (c+d x)} \operatorname {Hypergeometric2F1}\left (-\frac {1}{4},\frac {1}{4},\frac {5}{4},\frac {1}{2} (1-\sin (c+d x))\right )}{d e \sqrt [4]{1+\sin (c+d x)}} \]
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 1.50 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.23
method | result | size |
parts | \(\frac {2 a \sqrt {2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, \operatorname {am}^{-1}\left (\frac {d x}{2}+\frac {c}{2}| \sqrt {2}\right )}{d \sqrt {e \left (2 \left (\cos ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1\right )}}-\frac {2 a \sqrt {e \cos \left (d x +c \right )}}{d e}\) | \(75\) |
default | \(-\frac {2 a \left (\sqrt {\frac {1}{2}-\frac {\cos \left (d x +c \right )}{2}}\, \sqrt {2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )-1}\, F\left (\cos \left (\frac {d x}{2}+\frac {c}{2}\right ), \sqrt {2}\right )-2 \left (\sin ^{3}\left (\frac {d x}{2}+\frac {c}{2}\right )\right )+\sin \left (\frac {d x}{2}+\frac {c}{2}\right )\right )}{\sin \left (\frac {d x}{2}+\frac {c}{2}\right ) \sqrt {-2 \left (\sin ^{2}\left (\frac {d x}{2}+\frac {c}{2}\right )\right ) e +e}\, d}\) | \(103\) |
risch | \(-\frac {\left (1+{\mathrm e}^{2 i \left (d x +c \right )}\right ) a \sqrt {2}\, {\mathrm e}^{-i \left (d x +c \right )}}{d \sqrt {e \left (1+{\mathrm e}^{2 i \left (d x +c \right )}\right ) {\mathrm e}^{-i \left (d x +c \right )}}}+\frac {2 \sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}\, \sqrt {i \left (-i+{\mathrm e}^{i \left (d x +c \right )}\right )}\, \sqrt {i {\mathrm e}^{i \left (d x +c \right )}}\, F\left (\sqrt {-i \left ({\mathrm e}^{i \left (d x +c \right )}+i\right )}, \frac {\sqrt {2}}{2}\right ) a \sqrt {e \left (1+{\mathrm e}^{2 i \left (d x +c \right )}\right ) {\mathrm e}^{i \left (d x +c \right )}}\, {\mathrm e}^{-i \left (d x +c \right )}}{d \sqrt {{\mathrm e}^{3 i \left (d x +c \right )} e +{\mathrm e}^{i \left (d x +c \right )} e}\, \sqrt {e \left (1+{\mathrm e}^{2 i \left (d x +c \right )}\right ) {\mathrm e}^{-i \left (d x +c \right )}}}\) | \(232\) |
[In]
[Out]
Result contains higher order function than in optimal. Order 9 vs. order 4.
Time = 0.09 (sec) , antiderivative size = 75, normalized size of antiderivative = 1.23 \[ \int \frac {a+a \sin (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=\frac {-i \, \sqrt {2} a \sqrt {e} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) + i \, \sin \left (d x + c\right )\right ) + i \, \sqrt {2} a \sqrt {e} {\rm weierstrassPInverse}\left (-4, 0, \cos \left (d x + c\right ) - i \, \sin \left (d x + c\right )\right ) - 2 \, \sqrt {e \cos \left (d x + c\right )} a}{d e} \]
[In]
[Out]
\[ \int \frac {a+a \sin (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=a \left (\int \frac {1}{\sqrt {e \cos {\left (c + d x \right )}}}\, dx + \int \frac {\sin {\left (c + d x \right )}}{\sqrt {e \cos {\left (c + d x \right )}}}\, dx\right ) \]
[In]
[Out]
\[ \int \frac {a+a \sin (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=\int { \frac {a \sin \left (d x + c\right ) + a}{\sqrt {e \cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
\[ \int \frac {a+a \sin (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=\int { \frac {a \sin \left (d x + c\right ) + a}{\sqrt {e \cos \left (d x + c\right )}} \,d x } \]
[In]
[Out]
Time = 0.59 (sec) , antiderivative size = 45, normalized size of antiderivative = 0.74 \[ \int \frac {a+a \sin (c+d x)}{\sqrt {e \cos (c+d x)}} \, dx=-\frac {2\,a\,\sqrt {\cos \left (c+d\,x\right )}\,\left (\sqrt {\cos \left (c+d\,x\right )}-\mathrm {F}\left (\frac {c}{2}+\frac {d\,x}{2}\middle |2\right )\right )}{d\,\sqrt {e\,\cos \left (c+d\,x\right )}} \]
[In]
[Out]